home *** CD-ROM | disk | FTP | other *** search
/ Packard Bell - Multimedia…D & Packard Bell Library / Packard Bell Master CD.iso / diskimag / msdos62 / disk4.img / SETUP.BAT < prev    next >
DOS Batch File  |  1993-09-30  |  13KB  |  510 lines

  1. @echo off
  2. if "%2"=="COPY" goto docopy
  3. echo.
  4. echo Installs the MS-DOS 6.2 Supplemental Utilities, including:
  5. echo    * AccessDOS - assists persons with disabilities in using MS-DOS 6.2
  6. echo    * Keyboard utilities, including Dvorak keyboard layouts
  7. echo    * A program for creating a bootable compressed floppy disk
  8. echo    * Utilities from MS-DOS 5.0 that were not included with MS-DOS 6.2
  9. echo    * Updated network files for MS-DOS 6.2
  10. echo    * MS-DOS Shell
  11. echo.
  12. if "%1"=="" goto usage
  13.  
  14. echo Which components do you want to install?
  15. echo.
  16. echo   A: All the components (requires about 1.3 MB of free disk space)
  17. echo   S: Selected components only
  18. echo   X: Exit
  19. echo.
  20. choice /c:asx "All, Selected, Exit "
  21. if errorlevel 3 goto done
  22. set SD6=S
  23. if not "%SD6%"=="S" goto enverr
  24. if errorlevel 2 goto checkdir
  25. set SD6=A
  26.  
  27. :checkdir
  28. set DISK=XXX
  29. if not "%DISK%"=="XXX" goto enverr
  30. set CPCH=0
  31. if not "%CPCH%"=="0" goto enverr
  32.  
  33. if exist 360ID01.bat set DISK=360
  34. if exist 720ID01.bat set DISK=720
  35. if not exist %DISK%ID01.BAT goto direrr
  36.  
  37. set OCPCMD=%COPYCMD%
  38. set COPYCMD=/y
  39. if not "%COPYCMD%"=="/y" goto enverr
  40.  
  41. echo.
  42. expand %DISK%id01.bat %1\amjklfgh.000 > NUL
  43. if exist %1\amjklfgh.000 goto package1
  44.  
  45. echo The %1 directory does not exist.
  46. echo Do you want to create it?
  47. choice /c:yx "Yes, Exit "
  48. if errorlevel 2 goto done
  49.  
  50. echo Creating the %1 directory.
  51. md %1
  52. expand %DISK%id01.bat %1\amjklfgh.000 > NUL
  53. if not exist %1\amjklfgh.000 goto patherr
  54.  
  55.  
  56.  
  57. :package1
  58. if "%SD6%"=="A" goto auto1
  59. echo.
  60. echo.
  61. echo AccessDOS
  62. echo =========
  63. echo AccessDOS is a package of MS-DOS extensions for users with movement 
  64. echo or hearing disabilities. These extensions provide better access to 
  65. echo computers that run MS-DOS 6.2. AccessDOS requires about 270K of 
  66. echo free disk space.
  67. echo.
  68. echo Do you want to copy the AccessDOS utilities?
  69. choice /c:ynx "Yes, No, Exit "
  70. echo.
  71. if errorlevel 3 goto done
  72. if errorlevel 2 goto package2
  73.  
  74. :auto1
  75. echo TAG > %1\amjklfgh.001
  76.  
  77.  
  78.  
  79. :package2
  80. if "%SD6%"=="A" goto auto2
  81. echo.
  82. echo Keyboard Utilities
  83. echo ==================
  84. echo This package includes three Dvorak keyboard layouts, which can be used
  85. echo with any standard keyboard. These layouts are specifically designed to
  86. echo help individuals who type with a single hand or who have difficulty
  87. echo with the standard QWERTY layout.
  88. echo.
  89. echo The package also includes KBDBUF.SYS, which allows you to increase your
  90. echo keyboard type-ahead buffer.
  91. echo.
  92. echo This package requires about 25K of free disk space.
  93. echo.
  94. echo Do you want to copy the keyboard utilities?
  95. choice /c:ynx "Yes, No, Exit "
  96. echo.
  97. if errorlevel 3 goto done
  98. if errorlevel 2 goto package3
  99.  
  100. :auto2
  101. echo TAG > %1\amjklfgh.002
  102.  
  103.  
  104.  
  105. :package3
  106. if "%SD6%"=="A" goto auto3
  107. echo.
  108. echo Creating a Bootable Compressed Floppy Disk
  109. echo ==========================================
  110. echo The DBLBOOT.BAT program creates a bootable compressed floppy disk. 
  111. echo This program requires about 20K of free disk space.
  112. echo.
  113. echo Do you want to copy this program?
  114. choice /c:ynx "Yes, No, Exit "
  115. echo.
  116. if errorlevel 3 goto done
  117. if errorlevel 2 goto package4
  118.  
  119. :auto3
  120. echo TAG > %1\amjklfgh.003
  121.  
  122.  
  123.  
  124. :package4
  125. if "%SD6%"=="A" goto auto4
  126. echo.
  127. echo Additional MS-DOS Utilites
  128. echo ==========================
  129. echo This package contains utilities from MS-DOS 5.0 that were not included
  130. echo with MS-DOS 6.2. This package requires about 290K of free disk space.
  131. echo.
  132. echo Do you want to copy these utilities?
  133. choice /c:ynx "Yes, No, Exit "
  134. echo.
  135. if errorlevel 3 goto done
  136. if errorlevel 2 goto package5
  137. echo.
  138.  
  139. :auto4
  140. echo TAG > %1\amjklfgh.004
  141.  
  142.  
  143.  
  144. :package5
  145. if "%SD6%"=="A" goto auto5
  146. echo.
  147. echo MS-DOS 6 Network Files
  148. echo ======================
  149. echo If you upgraded to MS-DOS 6.2 from a version of MS-DOS less than 5.0,
  150. echo you might need to update your network files.  This package contains the
  151. echo networks files that will work with MS-DOS 6.2. The package requires about
  152. echo 275K of free disk space.
  153. echo.
  154. echo Do you want to copy the network files?
  155. choice /c:ynx "Yes, No, Exit "
  156. echo.
  157. if errorlevel 3 goto done
  158. if errorlevel 2 goto package6
  159. echo.
  160.  
  161. :auto5
  162. echo TAG > %1\amjklfgh.005
  163.  
  164. :package6
  165. if "%SD6%"=="A" goto auto6
  166. echo.
  167. echo MS-DOS Shell
  168. echo ============
  169. echo This package requires about 450K of free disk space.
  170. echo.
  171. echo Do you want to copy the MS-DOS Shell?
  172. choice /c:ynx "Yes, No, Exit "
  173. echo.
  174. if errorlevel 3 goto done
  175. if errorlevel 2 goto copyit
  176. echo.
  177.  
  178. :auto6
  179. echo TAG > %1\amjklfgh.006
  180.  
  181. set DSHL=XXXXXX
  182. if not "%DSHL%"=="XXXXXX" goto enverr
  183.  
  184. :dshloop
  185. cls
  186. Echo Enter your display type by pressing the appropriate function key.
  187. Echo.
  188. Echo MS-DOS can use the following display types:
  189. Echo.
  190. Echo F1  -  Monochrome
  191. Echo F2  -  CGA
  192. Echo F3  -  EGA
  193. Echo F4  -  EGA Monochrome
  194. Echo F5  -  VGA
  195. Echo F6  -  VGA Monochrome
  196. Echo F7  -  Hercules
  197. Echo F8  -  MCGA
  198. Echo F9  -  8514
  199. Echo F10 -  Quit
  200. Echo.
  201. :get_key
  202. get_func.com
  203. if errorlevel 69 goto get_key
  204. if errorlevel 68 goto dshdone
  205. if errorlevel 67 if not errorlevel 68 goto 8514
  206. if errorlevel 66 if not errorlevel 67 goto mcga
  207. if errorlevel 65 if not errorlevel 66 goto herc
  208. if errorlevel 64 if not errorlevel 65 goto vgamono
  209. if errorlevel 63 if not errorlevel 64 goto vga
  210. if errorlevel 62 if not errorlevel 63 goto egamono
  211. if errorlevel 61 if not errorlevel 62 goto ega
  212. if errorlevel 60 if not errorlevel 61 goto cga
  213. if errorlevel 59 if not errorlevel 60 goto mono
  214. goto dshloop
  215.  
  216. :mono
  217. Echo You selected "Monochrome". Is this correct?
  218. choice /c:yn "Yes, No "
  219. if errorlevel 2 goto dshloop
  220. set DSHL=cpmono
  221. goto dshdone
  222.  
  223. :cga
  224. Echo You selected "CGA". Is this correct?
  225. choice /c:yn "Yes, No "
  226. if errorlevel 2 goto dshloop
  227. set DSHL=cpcga
  228. goto dshdone
  229.  
  230. :ega
  231. Echo You selected "EGA". Is this correct?
  232. choice /c:yn "Yes, No "
  233. if errorlevel 2 goto dshloop
  234. set DSHL=cpega
  235. goto dshdone
  236.  
  237. :egamono
  238. Echo You selected "EGA Monochrome". Is this correct?
  239. choice /c:yn "Yes, No "
  240. if errorlevel 2 goto dshloop
  241. set DSHL=cpegam
  242. goto dshdone
  243.  
  244. :vga
  245. Echo You selected "VGA". Is this correct?
  246. choice /c:yn "Yes, No "
  247. if errorlevel 2 goto dshloop
  248. set DSHL=cpvga
  249. goto dshdone
  250.  
  251. :vgamono
  252. Echo You selected "VGA Monochrome". Is this correct?
  253. choice /c:yn "Yes, No "
  254. if errorlevel 2 goto dshloop
  255. set DSHL=cpvgam
  256. goto dshdone
  257.  
  258. :herc
  259. Echo You selected "Hercules". Is this correct?
  260. choice /c:yn "Yes, No "
  261. if errorlevel 2 goto dshloop
  262. set DSHL=cpherc
  263. goto dshdone
  264.  
  265. :mcga
  266. Echo You selected "MCGA". Is this correct?
  267. choice /c:yn "Yes, No "
  268. if errorlevel 2 goto dshloop
  269. set DSHL=cpmcga
  270. goto dshdone
  271.  
  272. :8514
  273. Echo You selected "8514". Is this correct?
  274. choice /c:yn "Yes, No "
  275. if errorlevel 2 goto dshloop
  276. set DSHL=cp8514
  277. goto dshdone
  278.  
  279. :dshdone
  280. if "%DSHL%"=="XXXXXX" goto dshlrerr
  281.  
  282. :copyit
  283. if not exist %1\amjklfgh.00? goto done
  284.  
  285. echo.
  286. echo Please Wait...
  287. copy sd6copy.bat %1 > NUL
  288. if exist %1\expand.exe ren %1\expand.exe expand.999 > NUL
  289. copy expand.exe %1 > NUL
  290. copy setup.bat %1\sd6setup.bat > NUL
  291. %1\sd6setup %1 COPY
  292. if exist %1\choice.com goto docopy
  293. copy choice.com %1 > NUL
  294. set CPCH=1
  295.  
  296. :docopy
  297. set SD6=1
  298. echo.
  299. echo Copying Supplemental Utilities...
  300. echo ---------------------------------------
  301.  
  302.  
  303. if not exist %1\amjklfgh.001 goto copy2
  304. call %1\sd6copy ADOS.OVL %1
  305. call %1\sd6copy ADOS.COM %1
  306. call %1\sd6copy ADOS.CFG %1
  307. call %1\sd6copy ADOS.TXT %1
  308. call %1\sd6copy AREADME.TXT %1
  309. call %1\sd6copy FAKEMOUS.COM %1
  310.  
  311.  
  312. :copy2
  313. if not exist %1\amjklfgh.002 goto copy3
  314. call %1\sd6copy DVORAK.SYS %1
  315. call %1\sd6copy DVORAK.TXT %1
  316. call %1\sd6copy KBDBUF.SYS %1
  317.  
  318.  
  319. :copy3
  320. if not exist %1\amjklfgh.003 goto copy4
  321. call %1\sd6copy DBLBOOT.BAT %1
  322. call %1\sd6copy AM.EXE %1
  323.  
  324.  
  325. :copy4
  326. if not exist %1\amjklfgh.004 goto copy5
  327. call %1\sd6copy ASSIGN.COM %1 D
  328. call %1\sd6copy BACKUP.EXE %1 D
  329. call %1\sd6copy COMP.EXE %1
  330. call %1\sd6copy CV.COM %1
  331. call %1\sd6copy EDLIN.EXE %1 D
  332. call %1\sd6copy JOIN.EXE %1 D
  333. call %1\sd6copy 4201.CPI %1
  334. call %1\sd6copy 4208.CPI %1
  335. call %1\sd6copy 5202.CPI %1
  336. call %1\sd6copy LCD.CPI %1
  337. call %1\sd6copy GORILLA.BAS %1
  338. call %1\sd6copy MONEY.BAS %1
  339. call %1\sd6copy NIBBLES.BAS %1
  340. call %1\sd6copy REMLINE.BAS %1
  341. call %1\sd6copy EXE2BIN.EXE %1 D
  342. call %1\sd6copy GRAFTABL.COM %1 D
  343. call %1\sd6copy MIRROR.COM %1
  344. call %1\sd6copy MSHERC.COM %1
  345. call %1\sd6copy PRINTER.SYS %1
  346. call %1\sd6copy PRINTFIX.COM %1
  347. call %1\sd6copy COMMANDS.TXT %1
  348.  
  349.  
  350. :copy5
  351. if not exist %1\amjklfgh.005 goto copy6
  352.  
  353. if "%DISK%"=="360" call %1\sd6copy CHANGEDISK 2
  354.  
  355. call %1\sd6copy NET.1XE %1
  356. call %1\sd6copy SETNAME.EXE %1
  357. call %1\sd6copy NETBEUI.DOS %1
  358. call %1\sd6copy NETWKSTA.1XE %1
  359. call %1\sd6copy NETWKSTA.2XE %1
  360. call %1\sd6copy REDIR.1XE %1
  361. call %1\sd6copy REDIR.2XE %1
  362. call %1\sd6copy NET.TXT %1
  363.  
  364. :copy6
  365. if not exist %1\amjklfgh.006 goto donecopy
  366.  
  367. if "%DISK%"=="360" call %1\sd6copy CHANGEDISK 3
  368. if "%DISK%"=="720" call %1\sd6copy CHANGEDISK 2
  369.  
  370. call %1\sd6copy dosshell.com    %1
  371. call %1\sd6copy dosshell.exe    %1
  372. call %1\sd6copy dosshell.hlp    %1
  373. call %1\sd6copy dosswap.exe     %1
  374. goto %DSHL%
  375.  
  376. :cpmono
  377. call %1\sd6copy mono.grb        %1\dosshell.grb NC %1
  378. call %1\sd6copy mono.ini        %1\dosshell.ini NC %1
  379. call %1\sd6copy mono.vid        %1\dosshell.vid NC %1
  380. goto cpddone
  381.  
  382. :cpcga
  383. call %1\sd6copy cga.grb         %1\dosshell.grb NC %1
  384. call %1\sd6copy cga.ini         %1\dosshell.ini NC %1
  385. call %1\sd6copy cga.vid         %1\dosshell.vid NC %1
  386. goto cpddone
  387.  
  388. :cpega
  389. call %1\sd6copy ega.grb         %1\dosshell.grb NC %1
  390. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  391. call %1\sd6copy ega.vid         %1\dosshell.vid NC %1
  392. goto egainst
  393.  
  394. :cpegam
  395. call %1\sd6copy egamono.grb     %1\dosshell.grb NC %1
  396. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  397. call %1\sd6copy ega.vid         %1\dosshell.vid NC %1
  398. goto egainst
  399.  
  400. :cpvga
  401. call %1\sd6copy vga.grb         %1\dosshell.grb NC %1
  402. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  403. call %1\sd6copy vga.vid         %1\dosshell.vid NC %1
  404. goto cpddone
  405.  
  406. :cpvgam
  407. call %1\sd6copy vgamono.grb     %1\dosshell.grb NC %1
  408. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  409. call %1\sd6copy vga.vid         %1\dosshell.vid NC %1
  410. goto cpddone
  411.  
  412. :cpherc
  413. call %1\sd6copy herc.grb        %1\dosshell.grb NC %1
  414. call %1\sd6copy mono.ini        %1\dosshell.ini NC %1
  415. call %1\sd6copy herc.vid        %1\dosshell.vid NC %1
  416. goto cpddone
  417.  
  418. :cpmcga
  419. call %1\sd6copy vga.grb         %1\dosshell.grb NC %1
  420. call %1\sd6copy cga.ini         %1\dosshell.ini NC %1
  421. call %1\sd6copy cga.vid         %1\dosshell.vid NC %1
  422. goto cpddone
  423.  
  424. :cp8514
  425. call %1\sd6copy vga.grb         %1\dosshell.grb NC %1
  426. call %1\sd6copy ega.ini         %1\dosshell.ini NC %1
  427. call %1\sd6copy 8514.vid        %1\dosshell.vid NC %1
  428. goto cpddone
  429.  
  430.  
  431. :egainst
  432. FIND /C /I "EGA.SYS" c:\config.sys > NUL
  433. if errorlevel 1 goto cpegasys
  434. goto cpddone
  435. :cpegasys
  436. call %1\sd6copy ega.sys %1
  437. Echo DEVICE=%1\EGA.SYS > %1\egasysad.dln
  438. copy c:\config.sys+%1\egasysad.dln c:\config.sys > NUL
  439. echo ---------------------------------------
  440. Echo.
  441. Echo The DEVICE=%1\EGA.SYS command has been added to your CONFIG.SYS file.
  442. Echo This command is required if you plan to use the MS-DOS Shell Task 
  443. Echo Swapper with an EGA monitor. 
  444. Echo
  445. Echo If you have an EGA monitor and also use a mouse, you can save memory 
  446. Echo by ensuring that the DEVICE command for EGA.SYS is loaded before the
  447. Echo mouse driver.
  448. Echo.
  449. goto cpddone
  450.  
  451. :cpddone
  452.  
  453. :donecopy
  454. del %1\amjklfgh.00? > NUL
  455. del %1\sd6copy.bat > NUL
  456. del %1\expand.exe > NUL
  457. if "%CPCH%"==1 del %1\choice.com > NUL
  458. if exist %1\egasysad.dln del %1\egasysad.dln > NUL
  459. if exist %1\expand.999 ren %1\expand.999 expand.exe > NUL
  460. echo ---------------------------------------
  461. echo.
  462. echo The MS-DOS 6.2 Supplemental Utilities have been successfully installed.
  463. echo.
  464. echo NOTE  If you installed the additional utilities from MS-DOS 5.0,
  465. echo       you must restart your computer before you can run them.
  466. %DISK%id0%SD6% %1
  467.  
  468.  
  469.  
  470.  
  471. :usage
  472. echo SETUP [drive:][path]
  473. echo.
  474. echo   [drive:][path] - Directory to install the utilities into.
  475. echo                    (ie. "C:\MSDOS", "C:").
  476. goto done
  477.  
  478. :patherr
  479. echo.
  480. echo Setup was unable to create the directory %1!
  481. echo.
  482. echo Note: The supplied directory name must not have a trailing \.  If you are
  483. echo       installing to the root directory, just specify the drive letter and
  484. echo       colon (ie. "C:").
  485. goto done
  486.  
  487. :enverr
  488. echo.
  489. echo ERROR: Not enough environment space to run SETUP.BAT!
  490. goto done
  491.  
  492. :direrr
  493. echo.
  494. echo ERROR: You must run SETUP.BAT from the drive and directory that contains
  495. echo        your supplemental disk files.
  496. goto done
  497.  
  498. :dshlrerr
  499. echo.
  500. echo An Error occoured while choosing video display for the MS-DOS Shell.
  501. goto done
  502.  
  503. :done
  504. if exist %1\amjklfgh.00? del %1\amjklfgh.00? > NUL
  505. set SD6=
  506. set CPCH=
  507. set DSHL=
  508. set COPYCMD=%OCPCMD%
  509. set OCPCMD=
  510.